function doExit(str) {
	var anchors = document.getElementsByTagName("a");
	for(var i = 0; i < anchors.length; i++){
		var anchor = anchors[i];
		if(anchor.getAttribute("rel") == "external"){
			if(confirm("确定要退出系统吗？")){
				anchor.href = str;
				document.forms[0].submit();
		   	}	
		}
	}
}
function doDel(str){
	if(confirm("确定要删除吗？")){
		document.forms[0].action = str;
   		document.forms[0].submit();
   	}
}
function doEdit(str){
	document.forms[0].action = str;
   	document.forms[0].submit();
}
function isChecked(){
	var list = document.getElementsByName("nos");
	for(var i = 0; i < list.length; i++){
		if(list[i].checked == true)
			return true;
	}
	return false;
}
function delRows(str){
	if(!isChecked()){
		alert("未选中要删除的记录");
		return;
	}
	doDel(str);
}
function doCheck(){
	var list = document.getElementsByName("nos");
	var check1 = document.getElementById("checkAll");
	if(check1.checked == true){
		for(var i = 0; i < list.length; i++){
			list[i].checked = true;
		}
	} else {
		for(var i = 0; i < list.length; i++){
			list[i].checked = false;
		}
	}
}